<div class="span12">
    <!--tombol cetak report-->
    <!--tabel-->
    <table class="table table-bordered table-striped">
        <thead align="center">
            <tr>
                <th colspan="6" style="text-align: center; background-color:#610E54; color:white;">DAFTAR JUDUL tesis</th>
            </tr>
            <tr>
                <th>#</th>
                <th>Info</th>
                <th>Diposting oleh</th>
                <th>Status</th>
                <th>Time</th>
                <th>Rubah status</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($info as $data): ?> 
                <tr>
                    <td><strong><?php echo $data->id ?></strong></td>
                    <td><?php echo $data->info ?></td>
                    <td><?php echo $data->set ?></td>
                    <td><?php echo $data->status ?></td>
                    <td><?php echo $data->time ?></td>
                    <td>
                        <?php
                        if ($data->status == 'Deactive') {
                            echo anchor('admin/setActive/' . $data->id, '<button type="button" class="btn btn-info">Active</button>');
                        }
                        ?>
                        <?php
                        if ($data->status == 'Active') {
                            echo anchor('admin/setDeactive/' . $data->id, '<button type="button" class="btn btn-danger">Deactive</button>');
                        }
                        ?>
                    </td>
            </tbody>
        <?php endforeach; ?>
    </table>
</div>